package com.teemor.common.bean.utils.redis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/8/24 16:16
 */
@Configuration
public class RedisClientConfig {
    @Value("${redis.host:common.teemor.xyz}")
    private String host;
    @Value("${redis.port:6379}")
    private Integer port;
    @Value("${redis.auth:zlk123789456..}")
    private String auth;

    @Bean
    public void  init() {
        RedisUtils.init(host, port, auth);
    }
}
